<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>

<bean:define id="role" value="${auth.role.roleType}" scope="session" />
<logic:equal name="role" value="admin">
	<html:form action="/airportInRouteAddAction">
		<html:hidden property="flightId" value="${flightId}" />
		<h1>
			<bean:message key="airport.title.choose" />
		</h1>
		<b><bean:message key="airport.choose" /></b>
		<html:select property="airportId" title="Available airport">
			<html:option value="-1">
				<bean:message key="airport.noAirportSelected" />
			</html:option>
			<html:options collection="airports" property="airportId"
				labelProperty="airportName" />
		</html:select>
		<html:submit>
			<bean:message key="airport.choose" />
		</html:submit>
		<br />

	</html:form>
</logic:equal>